<script setup>
	import {
		http
	} from "@/utils/http.js"
	import {
		useUserStore
	} from "@/store/module/user.js"
	const btn = () => {
		// 1. 普通用法
		http.request({
			url: '/echo',
			method: 'GET',
			header: {
				customHeader: '22222222'
			}
		})
		uni.utils.toast()
	}
	const store = useUserStore()
</script>
<template>
	<view class="">
		<button @click="btn">测试</button>
		<!-- 前面小节代码省略了 -->
		<view class="counter">
			<button @click="store.increment" class="button" type="primary">-</button>
			<input class="input" v-model="store.count" type="text" />
			<button @click='store.excremnt' class="button" type="primary">+</button>
		</view>
	</view>
</template>



<style>
</style>